package com.github.edu.repair.web.controller;

import com.github.edu.repair.web.service.RepairIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-1
 */
@Controller
@RequestMapping("/uc/repair")
public class RepairWebController extends BaseController{

    @Autowired
    private RepairIndexService service;

    @RequestMapping("/index")
    public String index(HttpServletRequest request, ModelMap map){
        service.index(map,getUserID());
        return super.index(request,"index/repair/index");
    }

}
